﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace GoScreenSaver
{
    public partial class SettingsForm : Form
    {
        public SettingsForm()
        {
            InitializeComponent();
        }

        private void fileBrowseButton_Click(object sender, EventArgs e)
        {
            openFileDialog1.ShowDialog();
        }

        private void openFileDialog1_FileOk(object sender, CancelEventArgs e)
        {
            this.glGoFileNameTextBox.Text = openFileDialog1.FileName;
        }

        private void buttonOK_Click(object sender, EventArgs e)
        {
            IsolatedStoreDataSource.Write(this.glGoFileNameTextBox.Text);
            Close();
        }

        private void SettingsForm_Load(object sender, EventArgs e)
        {
            glGoFileNameTextBox.Text = IsolatedStoreDataSource.GlGoFileName;
        }
    }
}
